const angular = require('angular');
const Uirouter = require('@uirouter/angularjs');


const home = require('../../views/home.html');
const user = require('../../views/user.html');
const categories = require('../../views/categories.html');
const proList = require('../../views/proList.html');
const shopCart = require('../../views/shopCart.html');


const RouterConfig = [
    '$stateProvider',
    '$urlRouterProvider',
    function ($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('home');
        $stateProvider
            .state('home', {
                url: '/home',
                template: home
            })
            .state('user', {
                url: '/user',
                template: user
            })
            .state('categories', {
                url: '/categories',
                template: categories
            })
            .state('proList', {
                url: '/proList',
                template: proList
            })
            .state('shopCart', {
                url: '/shopCart',
                template: shopCart
            })
    }
]

module.exports = RouterConfig;